package cn.laixueit.api;

import cn.laixueit.pojo.SpecParam;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public interface SpecApi {
    @GetMapping("/spec/params")
    public @ResponseBody
    List<SpecParam> specParamsByGid(@RequestParam(value = "gid",required = false)Long gid,
                                    @RequestParam(value = "cid",required = false)Long cid,
                                    @RequestParam(required = false)Boolean searching);
}
